<include file="Public/head" />
</head>
<body>
<include file="Public/common_header" />
<div class="mian">
    <include file="Public/sidebar" menu='cwgl.sk' />
    <div class="mianR">
        <h3 class="yonghu">收款基本信息</h3>
        <div class="chezhu-xinxi">
            <div class="xinxi-conter xinxi-conter1">
                <h4>车辆信息</h4>
                <ul>
                    <li class="clearfix">
                        <em>车型</em>
                        <em class="name-text1" style="width:300px;">{$order.model}</em>
                        <em>排放标准</em>
                        <em class="jing-text2">{$car.emission}</em>
                    </li>
                    <li class="clearfix">
                        <em>初登日期</em>
                        <em class="name-text1" style="width:300px;">{$car.first_reg_date}</em>
                        <em>颜色</em>
                        <em class="dian-hua">{$order.car_color}</em>
                    </li>

                    <li class="clearfix">
                        <em>表显里程</em>
                        <em class="name-text1" style="width:300px;">{$car.pointer_mileage}万公里</em>
                        <em>车况级别</em>
                        <em class="dian-hua">{$order.composite_state}{$order.accident_level}</em>
                    </li>

                    <li class="clearfix">
                        <em>车辆注册地</em>
                        <em class="name-text1" style="width:300px;">{$car.reg_city}</em>
                        <em>竞拍结束时间</em>
                        <em class="jing-text2">{$order.bidding_end_time}</em>
                    </li>
                    <li class="clearfix">
                        <em>车牌号</em>
                        <em class="name-text1" style="width:300px;">{$order.plate_prefix}{$order.plate_suffix}</em>
                        <em>车架号</em>
                        <em class="name-text" style="width:300px;">{$car.vin}</em>
                    </li>
                    <li class="clearfix">
                        <em>过户限制</em><em class="name-text1" style="width:300px;">{$transfer_type[$car_detail['transfer_limit']]}</em>
                        <em>渠道来源</em><em class="name-text" style="width:300px;">
                            <if condition="$car_detail.comefrom neq ''">
                            <?php if(empty($car_detail['comefrom_url'])):?>
                              <?php echo $show_from[$car_detail['comefrom']];?>
                            <?php else: ?>
                              <a href="{$car_detail.comefrom_url}" target="_blank" rel="noreferrer"><?php echo $show_from[$car_detail['comefrom']];?></a>
                            <?php endif;?>
                            <else/>
                              未知
                            </if>
                        </em>
                    </li>
                    <li class="clearfix">
                        <em>所在地</em>
                        <em class="name-text">{$car_detail.location_area}</em>
                    </li>
                </ul>
            </div>
            <br/>
            <div class="xinxi-conter xinxi-conter1">
                <h4>备注信息</h4>
                <ul>
                    <li>
                        <em>
                            <?php if($info['is_consult']==1):?>
                            磋商成交备注
                            <?php else:?>
                            车主确认备注
                            <?php endif;?>
                        </em>
                        <em class="name-text">{$info.owner_confirm_remark}</em>
                    </li>
                    <li>
                        <em>车商验车备注</em>
                        <em class="name-text">{$info.dealer_confirm_remark}</em>
                   </li>
               </ul>
            </div>
            <br/>
            <?php if($info['dealer_pay_status']==1):?>
            <include file="Finance/confirm" />
            <?php elseif ($info['dealer_pay_status']==2 || $info['dealer_pay_status']==3): ?>
            <include file="Finance/verify_footer" />
            <?php endif;?>
        </div>
    </div>
    <div class="clear"></div>
</div>
<script>
    $("#demoText4").ymdateplugin({
        showTimePanel: true,
        changeMonth: true,
        changeYear: true,
        seconds60:true
    });
    $(document).ready(function (e) {
        $(".yuyue ul li").eq(0).click(function () {
            $(".listBox .yuList").eq(0).show().siblings().hide();
        })
        $(".yuyue ul li").eq(1).click(function () {
            $(".listBox .yuList").eq(0).show().siblings().hide();
        })
        $(".yuyue ul li").eq(2).click(function () {
            $(".listBox .yuList").eq(1).show().siblings().hide();
        })
    });
    $("#store").change(function () {
        var store_id = $(this).val();
        $.post("/Finance/getDeliver", {"store_id": store_id}, function (data) {
            var optstr = '';
            if (data.code == 200) {
                $.each(data.data, function (k, val) {
                    optstr += "<option value='" + val.emp_id + "'>" + val.real_name + "</option>"
                })
            }
            $("#deliver").html(optstr);
        }, "json");
    });

    $(".confirm").click(function () {
        $.post("/Finance/confirm_collection", $("#payForm").serialize(), function (data) {
            if (data.code !== 200) {
                shibai_alert(data.msg, 1500);
                return false;
            }
            btn_alert("确认成功", 1000, function () {
                location.href = document.referrer
            });
        }, "json");
    });
</script>
</body>
</html>
